module.exports = {
    getNames: function(e) {
        for (var a = [], u = 0; u < e.length; ++u) a.push(e[u].Name);
        return a;
    },
    getValues: function(e) {
        for (var a = [], u = 0; u < e.length; ++u) a.push(e[u].Values);
        return a;
    },
    getName: function(e, a) {
        for (var u = 0; u < e.length; ++u) if (e[u].value == a) return e[u].Name;
        return null;
    },
    getValue: function(e, a) {
        for (var u = 0; u < e.length; ++u) if (e[u].Name == value) return e[u].Value;
        return null;
    },
    cateList:[
      [
        {
          value: 118,
          imageUrl:'/packages/images/fkyy.png',
          text: '妇科用药'
        },
        {
          value: 128,
          imageUrl: '/packages/images/bqyx.png',
          text: '补气养血'
        },
        {
          value: 129,
          imageUrl: '/packages/images/nxjk.png',
          text: '男性健康'
        },
        {
          value: 131,
          imageUrl: '/packages/images/ctzb.png',
          text: '传统滋补'
        },
      ],
      
      [
        {
          value: 132,
          imageUrl: '/packages/images/fsgt.png',
          text: '风湿骨痛'
        },
        {
          value: 133,
          imageUrl: '/packages/images/gmks.png',
          text: '感冒咳嗽'
        },
        {
          value: 134,
          imageUrl: '/packages/images/zyl.png',
          text: '中药类'
        },
        {
          value: 0,
          imageUrl: '/packages/images/all.png',
          text: '全部分类'
        },
      ] 
    ],    
    sortName:[
      { value: 1, text: '综合'},
      { value: 2, text: '销量' },
      { value: 3, text: '价格' },
      { value: 4, text: '筛选' }
    ]
};